package day05;

public class TaskThree {
    public static void main(String[] args) {

        int[] a = new int[3];
        a[0] = 3;
        a[1] = 6;
        a[2] = 9;
        int[]a1={3,6,9};
        int[]a2=new int[]{3,6,9};
        System.out.println(a[a.length-1]);
        System.out.println(a.length);//a的长度

        int[] a3= new int[10];
        for (int i = 0;i<a3.length;i++){
            a3[i] = (int)(Math.random()*100);
            System.out.println(a3[i]);
        }
    }
}
